package edu.zut.cs.software.sms.billManagement.web.spring.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import edu.zut.cs.software.module.billManagement.domain.BillManagement;
import edu.zut.cs.software.module.billManagement.service.BillManager;
import edu.zut.cs.software.teach.Base.web.spring.controller.GenericController;

@Controller
@RequestMapping("/billManagement")
public class billManagementController extends GenericController<BillManagement, Long, BillManager> {
	BillManager billManager;
	
	@RequestMapping(method = RequestMethod.GET, value = "/index.html")
	public String index() {
		//String result = "/admin/index";
		return "admin/index";
	}
	
	 @Autowired
	    public void setBillManager(BillManager billManager) {
	        this.billManager = billManager;
	        this.manager = this.billManager;
	    }

	}

